Capturing data from user selected portions of a business process and transferring captured data to user identified destinations

ABSTRACT

A graphical user interface (GUI) displays a flow of activities of a business process, including any portion thereof from which capture of data is permitted. The GUI receives, in an operation, at least an indication of a business process portion from which data is to be captured (“sensor”), an identification of an endpoint to which captured data is to be transferred, and a type of the endpoint which identifies (through a mapping) a predetermined software. A sensor may be added any number of times (through a single GUI or though multiple GUIs) by repeatedly performing the operation. Also, a given sensor may be associated with multiple endpoints. Computer(s) executing the business process check whether or not a sensor is present, on execution of the business process portion, and if present, then execute the corresponding predetermined software(s) to transfer data from the sensor directly to the respective endpoint(s).

BACKGROUND

Orchestration enables users to create new applications (typicallybusiness processes) from pre-existing applications (typically webservices) that execute on different computers that are interconnected bya network, such as the Internet. A description of such a businessprocess (that performs orchestration) may be expressed in anindustry-standard language, such as WS-BPEL (Web Services BusinessProcess Execution Language), formerly called BPEL4WS or BPEL. BPEL isbeing standardized by OASIS (Organization for the Advancement ofStructured Information Standards) of Billerica, Massachusetts, USA.

Visual tools to assist users in orchestration display a graphical userinterface (GUI) wherein users can drag and drop certain shapes torepresent pre-existing applications, and interconnect them. Use of sucha tool eliminates the need for users to write software in BPEL. Visualtools that generate BPEL-compliant software include Oracle's BPEL-PM(BPEL Process Manager) 2.0, IBM's WBISF (WebSphere Business IntegrationServer Foundation) 5.1, Microsoft's BizTalk Server 2004, and SAP'sNetWeaver.

A “business activity monitoring” (BAM) process collects data frommultiple computers that are processing credit card applications, anddisplays the data in a user interface called a dashboard. The data maybe obtained via a BAMInterceptor class of the type available inMicrosoft's BizTalk Server 2002. Microsoft's BAMInterceptor class allowsthe application to be instrumented in a generic way, so that verbosityand content can be controlled via configuration. For more information,see the URL obtained by replacing $ with ‘/’ in the following:http:$$msdn.microsoft.com$library$default.asp?url=$library$en-us$sdk$htm$frlrfmicrosoftbiztalkbameventobservationbaminterceptorclasstopic.asp

Microsoft describes use of BAM Interceptor as follows (“you” is theuser). In each step of your application where you could have data ofinterest, you call Interceptor OnStep, provide an identifier for thestep, and provide some data or arbitrary object that you are using inyour application. You must implement a callback function so when thecallback occurs, your callback procedure gets the current step ID andyour data object. . . . Microsoft's BAM interceptor decides which datato request at each step, based on a configuration that you can createprogrammatically. . . . After you create an interceptor instance, youcan store it for later use at runtime. You may keep differentpre-created interceptors representing different preferences for the dataand milestones for BAM. The BizTalk Orchestration Engine accommodatesinterception, which allows changing what data is collected for BAM atruntime using the Tracking Profile Editor.

Note that Microsoft's BizTalk appears to requires its users (i.e.process designers) to manually modify their source code (i.e. editsoftware) for a business process to add the BAM interceptor, and toredeploy such a modified process. Microsoft also appears to require itsprocess designers to manually program a callback procedure which mustreceive and process a current step ID and a data object from themodified process.

US Patent Publication 2003/0225769 filed by Chkodrov et al. on May 31,2002 as Application 10/157,968, assigned to Microsoft and entitled“Support for real-time queries concerning current state, data andhistory of a process” is incorporated by reference herein in itsentirety. This publication describes defining interesting portions of aworkflow of a business or other type of process. Using a trackingprofile editor, a portion of a given workflow is selected and associatedwith a named process part. A profile is generated based on the givenworkflow and selected items of payload data. The output of the trackingprofile editor may be saved, for example, as an XML file. A trackingprofile compiler receives the created tracking profile and generates astar schema, a flattened view and OLAP cube based on the trackingprofile. Note that Chkodrov's Tracking Profile appears to be limited toBAM.

US Patent Publication 2003/0225769 states that an interceptor receiveseach event or payload data of interest, checks the interceptorconfiguration to determine whether the event is an event of interest orwhether the payload data is payload data of interest, and if so,serializes the event or payload data, along with a timestamp, into atracking stream. A tracking service extracts information pertaining tothe monitored events from the tracking stream and stores the informationin a queryable database. The tracking service continually monitors thetracking stream and processes events, calling a proper stored procedureto store information, pertaining to events in the database.Alternatively, each event may have a specific event number and a hashtable may be accessed using the event number to select an address of astored procedure to execute.

The above-described US Patent Publication 2003/0225769 refers to USPatent Publication 2003/0225820 which was also filed by Chkodrov et al.on May 31, 2002 as Application 10/160844 entitled “System and method forcollecting and storing event data from distributed transactionalapplications” which is also incorporated by reference herein in itsentirety. For background on related technologies, see US PatentPublication 2004//0176968 by Syed, et al. on Mar. 7, 2003 and entitled“Systems and methods for dynamically configuring business processes”also incorporated by reference herein in its entirety.

For more background, see US Patent Publication 2005/0049924 byDeBettencourt et al. filed on Aug. 27, 2003 and entitled “Techniques foruse with application monitoring to obtain transaction data”; See also USPatent Publication 2005/0071243 by Somasekaran et al. filed on Sep. 30,2003 and entitled “Non-disruptive business process debugging andanalysis”; see also US Patent Publication 2003/0115334 by Bait et al.entitled “Business transaction monitoring system and method” filed Nov.4, 2002; see also US Patent Publication 2002/0038228 by Waldorf et al.entitled “Systems and methods for analyzing business processes” filedMar. 28, 2001; all of the just-described patent publications (in thisparagraph) are incorporated by reference herein in their entirety.

SUMMARY

In accordance with the invention, a graphical user interface (GUI)displays a flow of portions of a business process, such as activities,from which capture of data is possible. The GUI receives, in one or moreoperations, at least an indication of a business process portion fromwhich data is to be captured (“sensor”), as well as an identification ofan destination to which captured data is to be transferred and a type ofthe destination (which identifies, through a mapping, a predeterminedsoftware). A sensor may be added any number of times (through a singleGUI or though multiple GUIs) by repeatedly performing the operation.Also, a given sensor may be associated with any number of destinations(also called “endpoints”).

Definitions of sensors (which describe the business process portion tobe monitored), and destination identification and type (together called“sensor action”) are prepared by a GUI of some embodiments andtransmitted to one or more computers that execute the business process.Computer(s) executing the business process in accordance with theinvention check whether or not a sensor is present, on execution of abusiness process portion, and if present, then execute the correspondingpredetermined software(s) to transfer data from the sensor directly tothe respective destination(s).

Sensors in accordance with the invention can be of one or more of thefollowing kinds: (1) activity sensors which monitor execution ofactivities within a business process (e.g. execution time of an invokeactivity or variable values modified as a result of executing theactivity) (2) fault sensors that monitor occurrence of faults within thebusiness process (e.g. divide by zero), and (3) variable sensors thatmonitor variables (or parts thereof) of the business process (e.g. inputand/or output data of the business process). Moreover, sensor actionscan be used to transfer data being captured (by presence of a sensor),to one or more of the following types of destinations: (1) queue, (2)database, and (3) custom. A given sensor can be associated with anynumber of sensor actions and vice versa, depending on the embodiment.

BRIEF DESCRIPTION OF THE FIGURES

FIGS. 1A and 1B illustrate, in flow charts, a computer-implementedmethods in accordance with the invention that automatically preparedescriptions on receipt from a user of an indication of a portion of abusiness process (also called “sensor”) from which data is to becaptured, and indication of a destination to which captured data is tobe transferred respectively.

FIG. 1C illustrates, in a flow chart, a method of some embodiments thatis performed by one or more computers executing a business process, toperform user-indicated data capture and to transfer the captured data toone or more user-indicated destination(s).

FIG. 2A illustrates, in a high-level block diagram, several soyftwarecomponents that are implemented in some embodiments of the method ofFIG. 1C.

FIGS. 2B and 2C illustrate, in flow charts, acts performed in certainembodiments by the blocks illustrated in FIG. 2A, on receipt of sensordefinitions, and during execution of the business process respectively.

FIG. 3A-3C illustrate a computer in one exemplary embodiment thatperforms the method of FIG. 1A, including a graphical user interface(GUI) to receive the identification of a sensor.

FIG. 3D illustrates a definition of a sensor in one exemplary embodimentthat is expressed in an eXtensible Markup Language (XML) in accordancewith the invention, including values for a name of the sensor, a name ofthe class, a kind of the sensor and a target of the sensor enclosedbetween an opening tag and a closing tag.

FIG. 3E illustrates a schema with which the sensor definition of FIG. 3Dis in accordance in some embodiments of the invention.

FIG. 3F illustrates the GUI in the computer of FIG. 3A wherein thepresence of the sensor of FIG. 3D is shown by an icon 121I.

FIGS. 3G and 3I illustrate additional screens of the GUI in theexemplary embodiment, similar to the screen in FIG. 3C, for receipt fromthe user of configuration information regarding two different kinds ofsensors.

FIGS. 3H and 3J illustrate additional definitions of sensors, similar tothe sensor definitions of FIG. 3D, holding the values of sensorsreceived in the additional screens of FIGS. 3G and 3I respectively.

FIGS. 4A, 4B, 4G, 4I, and 4K illustrate screens of the GUI in theexemplary embodiment, similar to the screen in FIG. 3C, for receipt fromthe user of configuration information regarding the identity and type ofdestinations that are to receive the data being captured as described insensor definitions.

FIGS. 4C, 4H, 4J and 4L illustrate definitions of sensor actions,similar to the sensor definitions of FIG. 3D, holding the values ofdestination identity and destination type received in the additionalscreens of FIGS. 4A, 4G, 4I and 4K respectively.

FIG. 4D illustrates a definition of a tuple (including a sensor'sidentity and a sensor action) that is used in some embodiments of theinvention.

FIG. 4E illustrates data captured in one exemplary embodiment, inresponse receipt of a tuple illustrated in FIG. 4D.

FIG. 4F illustrates a schema in accordance with which the data in FIG.4E is articulated.

FIG. 4M illustrates, instructions in the Java language that are used ascustom software by a user when identifying a destination to be of type“custom”.

FIG. 5A illustrates the GUI in the computer of FIG. 3A wherein thepresence of multiple sensors is shown by respective icons 112A-112N and112Z.

FIG. 5B illustrates a deployment descriptor that is used in someembodiments of the invention to identify the names of files containingsensor definitions and sensor action definitions, to a computer thatexecutes the business process.

FIGS. 6A and 6B illustrate, in block diagrams, hardware and softwareportions of a computer that performs one or more acts of the methodillustrated in FIGS. 1A-1C.

DETAILED DESCRIPTION

In accordance with the invention, a computer is programmed with agraphical user interface (GUI) to display (as per act 111 in FIG. 1A) adrawing of activities of a business process (e.g. in a flow chart), andreceive (as per act 112) through the GUI a selection of any portionthereof (called “sensor”) from which capture of data is to be performed.For example, a human (“user”) may simply point and click on any portionof the business process shown in the drawing, such as a single activityor several activities grouped into a structured activity, or a variableor a fault. Note that a user can identify any portion of a businessprocess as being suitable for capture of data therefrom. In response tosuch user input, the computer displays (as per act 113) an indication inthe GUI that a sensor is now associated with the user-selected portionof the business process. The computer (hereinafter “GUI computer”) isfurther programmed to automatically generate (as per act 114) adefinition of the sensor, expressed as, for example, metadata in anindustry-standard format, such as XML.

A sensor definition typically includes at least an identification of anactivity within the business process, and optionally also includes anidentification of the business process itself. Depending on theembodiment, the sensor definition may also include additional valuesthat may be identified in a similar manner (by user selecting an itemfrom a displayed figure) or alternatively by a user typing in suchadditional values. Examples of additional values include the “kind” ofevent that is to trigger a sensor and the data structure being targetedwhose data is to be captured at the sensor.

In one illustrative embodiment, the GUI computer displays in act 113 anicon in the form of a magnifying lens adjacent to a business processportion whose data is to be captured. Instead of an icon any otherindication, may be made by the GUI computer to acknowledge the user'sinterest in a business process portion, e.g. by changing the color ofthe activity to a predetermined color and/or changing any otherattribute such as brightness of the activity, in the drawing of thebusiness process.

In embodiments wherein the GUI computer is different from anothercomputer that executes the business process, the sensor definition istransferred therebetween (as per act 116). On receipt of the sensordefinition, one or more computer(s) executing the business process,begin to collect data of interest to the user. Specifically, suchbusiness process computer(s) of some embodiments check sensordefinition(s) on execution of each portion of the business process (e.g.before and/or after execution of each activity), and collect data ofinterest to the user as indicated in the sensor definition(s).

While in some embodiments, after act 114 (FIG. 1A), the GUI computerproceeds directly to act 116, in several embodiments the GUI computerreturns to act 111 as per branch 115 (FIG. 1A) to permit the user toidentify additional sensors. Moreover, although in some embodiments,after act 112 the computer proceeds to act 113, in other embodiments,the computer goes directly to act 114 as per branch 118 (FIG. 1A) inwhich case the display is not updated until after the description of theuser-selected portion (in a sensor definition) is generated in act 114.Therefore, a specific order of performance of acts 111-116 relative toone another may be different, depending on the embodiment. Hence,several such embodiments will be apparent to the skilled artisan in viewof this disclosure.

In some embodiments, the sensor definition is transferred (in act 116)along with a transfer of the description of the business process (whichmay be, e.g. expressed in WS-BPEL) from the GUI computer to one or morebusiness process computer(s), i.e. during deployment of the businessprocess. In such embodiments, a change in sensor definition requiresre-deployment of the business process. In other embodiments, the sensordefinition is transferred independent of transfer of the businessprocess description. The GUI computers of such other embodiments acceptidentification of a sensor even at run time, i.e. after deployment of abusiness process, and the corresponding business process computersdynamically process changes to sensors during execution of the businessprocess, thereby to eliminate the need to re-deploy a modified businessprocess. Also, many embodiments permit one or more users to add a sensor(for a given activity or variable or fauit) any number of times (e.g.through a single GUI or though multiple GUIs) by repeatedly performingsensor addition.

Identification of sensors through a GUI as per acts 111-112 andautomatic generation of one or more sensor definition(s) as per act 114eliminates the need to manually change software to add an interceptor toinvoke a callback procedure, as required in the prior art described inthe Background section above. Specifically, a GUI as described hereinallows a user who is not a programmer to set up one or more sensors byusing a pointing device (e.g. point and click or drag and drop), whichis a significant improvement over a prior art requirement for aprogrammer to modify source code and write a callback procedure. Notefurther that in some embodiments, a user who is not a programmer maystill manually prepare definition of a sensor on their own, bypassingthe GUI.

In some embodiments, the data captured as specified in a sensor isstored in a predetermined format and/or in a predetermined data store,while in other embodiments, the captured data is transferred to one ormore destinations that are user configurable and/or in a format that isuser configurable. Specifically, in some illustrative embodiments, a GUIcomputer of the type described above in reference to FIG. 1A receivesfrom the user one or more attributes of the destinations, e.g. identityof queues and/or databases and/or format of the data, and prepares oneor more descriptions of the destinations containing such configurationinformation (to generate a sensor action definition) as described nextin reference to FIG. 1B.

In act 121 (FIG. 1B) the GUI computer displays a screen and receives viafields in the screen one or more attributes, such as the identity of adestination (e.g. in the form of an XPATH expression) and a type of thedestination (e.g. queue or database or custom in case of user-definedsoftware interface), to which captured data is to be transmitted (called“sensor action”). Next, in act 122, the GUI computer generates adescription of the configuration information received in act 121 (called“sensor action definition”). Note that after act 122, while the GUIcomputer goes to act 123 in some embodiments, in other embodiments theGUI computer returns to act 121. Furthermore each of acts 121 and 122may be repeated any number of times.

In act 123, the GUI computer displays another screen and receives viafields in the screen one or more correlations, between each sensor andone or more sensor actions. Note that a given sensor of a given businessprocess may be associated in act 123 with any number of (i.e. one ormore) sensor actions. Next, in act 124 the GUI computer generates adescription of one or more correlations received in act 123. In act 124,the GUI computer may additionally generate the definition of any sensoractions that were not previously generated (e.g. in act 122). Then, inact 125 the GUI computer transmits the definitions that were prepared inact 122 and/or act 124 to one or more business process computers,thereby to notify these computers to transfer any collected data inaccordance with configuration specified in the definitions.

In some embodiments, the GUI computer prepares a description ofassociations together with sensor actions, in a single file in act 124although in other embodiments the sensor actions are described in onefile (generated in act 122) that is separate and distinct from anotherfile containing the description of associations (generated in act 124).Furthermore, in some embodiments, the GUI computer prepares a singlefile containing various descriptions, e.g. definitions of each ofsensors, sensor actions and associations. Moreover, in some embodiments,all of the configuration information described above in reference tosensors and sensor actions is received in a single operation although inother embodiments such information can be received in any relativeorder. For example, all sensors may be configured via the GUI in a firstloop, all sensor actions may be configured via the GUI in a second loop,and all associations between sensors and sensor actions may beconfigured via the GUI in a third loop, with the first two loops beingexecuted in any order relative to one another, followed by the thirdloop.

In many embodiments, two attributes of a sensor action that are suppliedto a GUI computer by the user at runtime (during execution of thebusiness process) are: (1) an identification of a destination to whichcaptured data is to be transferred and (2) a type of the destination,which is selected from a predetermined set of types. Each sensor actiontype that is selectable by the user is previously associated with anduniquely identifies (through a predetermined mapping) a predeterminedsoftware to be executed (to perform at least one action) whentransferring information to the identified destination. Identificationof predetermined software and one or more destination(s) viacorresponding fields in the graphical user interface eliminates the needfor a user (when enabling data capture) to write their own procedure asrequired by prior art. Hence a GUI computer of the type described aboveis simpler and more user-friendly than prior art.

A computer that executes a business process in accordance with theinvention is responsive to receipt of sensors, sensor actions andassociations therebetween. Specifically, the computer is programmed tocheck (as per act 131 in FIG. 1C) if a sensor is present on execution ofeach portion of a business process (e.g. on execution of each activity,such as an invoke activity, a receive activity, and a throw activity).If a sensor is present, the business process computer automaticallyperforms capture of data (as per act 132) as specified in the sensordefinition. The captured data is transferred directly by the businessprocess computer (as per act 133) to one or more destination(s) asidentified in the corresponding associations, by executing predeterminedsoftware(s), e.g. identified from the type of the destination(s).Transfer of data to one or more destinations directly by the businessprocess computer eliminates the need to access a database to store dataor to retrieve stored procedures.

As noted above, a business process computer of some embodimentstransfers captured data by execution of predetermined software that isidentified in sensor action definition(s). A user may select suchsoftware implicitly, e.g. by identifying in a GUI (via “drag-drop” or“point-click” action on a pointing device such as a mouse), a type ofdestination for receipt of capture data as being, for example, adatabase or a queue, wherein each type is associated with its ownsoftware that is predetermined, e.g. written ahead of time. Adestination's type is also referred to as “publish type.” Such GUI-basedselection of a publish type by the user eliminates the need for the userto write software for a destination, for whose type such softwarealready exists. Several such embodiments implement tight integration(the UI software and the runtime software) with business processmodeling.

In alternative embodiments, instead of using a GUI, sensor definitionsand/or sensor action definitions may be manually prepared, as per acts140 and 150 (FIG. 1C). Manual preparation of such definitions does notrequire any programming skills because the definition of sensors and/orsensor actions merely contains descriptions of configurationinformation, such as the identity of an activity whose data is to becaptured and/or the identity of a destination to which the data is to betransferred. As the definitions in many embodiments are expressed in ahuman-readable language, such as the extensible Markup Language (XML),the definitions can be prepared as, e.g. descriptions of the businessprocess portion being monitored and/or data to be captured and/orsoftware to be executed and/or destinations to which captured data is tobe transferred, in a simple text editor in conformance withpredetermined schema(s) for sensors and/or sensor actions. Hence, suchembodiments are completely meta-data driven and no coding skills arerequired (other than to understand schema) to write the definitions ofsensors and/or sensor actions. Note that in other embodimentsdefinitions of sensors and/or sensor actions may be expressed inlanguages that are not human understandable, and a parser or other suchsoftware tool may be required for a human to review and/or modify thedefinitions.

In some embodiments, software which handles captured data applies afilter (that may be user configured), when accepting the captured datafor transfer to a destination. Alternatively, or in addition, suchsoftware of some embodiments uses an industry standard interface totransfer the captured data to the destination (that is user configured),e.g. by sending messages, via Java Messaging Service (JMS). The captureddata may be additionally or alternatively transferred using anotherindustry standard interface to store/retrieve data, such as JavaDatabase Connectivity (JDBC) API for cross-DBMS connectivity to a widerange of SQL databases and access to other tabular data sources, such asspreadsheets or flat files.

Sensors and sensor actions of some embodiments as illustrated in FIGS.1A-1C differ from prior art in a number of ways, as discussed next.Sensors in many embodiments are completely meta-data driven, and requireno code to be written. Specifically, a designer of the business processcan remain completely unaware of the presence or absence of suchsensors. In such embodiments, sensors are overlayed on top of a businessprocess (e.g. via a GUI), by users interested in monitoring the process.The overlay implementation allows sensors to be easily added or removed(or enabled/disabled) without modifying an already deployed process,independent of the lifecycle of the business process.

Moreover, overlay is implemented in some embodiments by updating sensorsand/or sensor actions in a computer that is executing the businessprocess, in a store therein that is independent of business processexecution, such that changes to the store do not require the businessprocess to be stopped and re-started. Hence, changes to sensors andsensor actions are implemented on the fly in such embodiments, withoutaffecting (or only minimally affecting) the real-time execution of abusiness process. In contrast, the prior art interceptors described inthe Background section above appear to require the process designer tomake changes to the business process itself, to enable the businessprocess to be monitored. Hence, prior art interceptors are intrusive andinflexible because if changed, the business process must be modified andredeployed.

Moreover, prior art interceptors as described in the Background sectionabove, are believed to be limited to sending their captured data to asingle destination, namely the BAM product. In contrast, sensor actionsas described herein can be configured (through a GUI) to selectivelycapture data and to publish selections of captured data to a database,and/or to reports, and/or to Java Messaging Service (JMS) destinations(e.g. queues or topics), and/or BAM. Therefore, depending onconfiguration, data may be captured, for example, only when the datasatisfies one or more user-specified criteria of the sensor. Incontrast, prior art described in the Background section above transfersa complete data object to an interceptor written by the user, and theuser's interceptor has to evaluate the data object for compliance withsuch criteria. Depending on the embodiment, a sensor action may even beconfigured (through the GUI) to contain one or more user-providedcallback procedures, which therefore allows the captured data to be sentto any computer, including a computer that generates BPEL reports.

Furthermore, sensors and sensor actions of some embodiments asillustrated in FIGS. 1A-1C differ from debuggers in a number of ways, asdiscussed next. As noted above, sensors in many embodiments areimplemented as an overlay, so that the business process itself remainsunchanged regardless of what data is being captured. In contrast,debuggers are intrusive because they attach to the process. Furthermore,debugger breakpoints generally slow down the process being debuggedsignificantly, which limits the use of debuggers primarily for testingpurposes. One cannot have a debugger attached to a production process.In contrast, sensors have a very slight performance impact on thebusiness process being monitored, when implemented by overlaying onexecuting production processes for continuous monitoring.

Also, a debugger (to the inventors'knowledge) attaches to a specificinstance of an executing process or program.—i.e. one cannot have adebugger monitor all instances at the same time—since each process hasdifferent values for the same variable. However, a sensor of mostembodiments may be transmitted to all computers that are runninginstances of a business process, to monitor all instances thereof.Moreover, a debugger (to the inventors' knowledge) does not have amechanism to publish data to external systems after a breakpoint occurs.Specifically, most debuggers known to the inventors display the data ofthe variables only within a user interface of the debugger itself. Incontrast, a sensor of the type described herein can be associated with asensor action that sends out not only the sensor data but also othersystem data such as “process name, timestamp, machine name, datatype”etc to the publisher (JMS, database, custom etc.)

Finally, note that debuggers generally (to the inventors' knowledge) donot maintain any state information across breakpoints. In contrast,sensors of some embodiments can be configured to track various types ofinformation over time, such as the time taken (i.e. duration) to executean activity. In one such example, an activity sensor of severalembodiments is triggered at the start and at the end of an activity (aswell as on occurrence of any event such as a re-trial of the activity),and predetermined software for the sensor action automatically computesthe time required for the activity to complete (i.e. duration of theactivity).

A method in accordance with the invention, as illustrated in FIGS.1A-1C, enables the user to use a GUI to activate capture of data from abusiness process at a business document level. Any work done by abusiness process, is monitored at a very high level of abstraction,namely at the level of modeling of the business process. Therefore, aprior art requirement for the user to write their own callback functionand/or stored procedure is eliminated in accordance with the inventionby allowing the user to simply select a predetermined software(indirectly by specifying the destination's type), and provide theidentity of the destination to which captured data is to be sent by thepredetermined software. Also, as noted elsewhere herein, a user mayspecify a given captured data from a given sensor to be sent to multipledestinations, by associating the multiple destinations with a givensensor. Also, when creating a sensor, the user may select apredetermined software that is different (or same) for each destination,depending on a type of the destination (e.g. queue, or topic, ordatabase).

In some embodiments, one or more computers are programmed with foursoftwares, namely a business process manager 222 (FIG. 2A), sensorregistry 223, a data capture agency 224 and a sensor agency 225.Business process manager 222 receives each of documents 214, 215 and 216(FIG. 2A) from business process modeler 221. On receipt these documents,business process manager 222 stores the information contained therein ina sensor registry 223 (FIG. 2A), by performing acts 231-236 and 241-244which are described below in reference to FIG. 2B. The remainingsoftwares 223, 224 and 225 (together called “sensor framework”) are usedduring execution of the business process, as described below inreference to FIG. 2C.

In some embodiments, sensor registry 223 maintains a catalog of sensorsand sensor actions. The configuration of sensors and sensor actions arestored in a normalized relational schema in an Oracle Database. Thesensor registry 223 of such embodiments performs the following actions:maintains sensors and sensor actions for business processes acrossdomains, registers new sensors and sensor actions for a businessprocess, unregisters (delete) sensors and sensor actions for somebusiness processes, responds to queries from data capture agency 224 andsensor agency 225, and caches sensor and sensor action metadata for fastaccess (which are maintained in a database in non-volatile memory).

In such embodiments, data capture agency 224 is notified by businessprocess manager 222 whenever an event happens. In response to eachevent, data capture agency 224 captures the appropriate data from thebusiness process context after querying sensor registry 225 for presenceof sensors and at least one associated sensor action, and sends thecaptured data (as specified in the respective sensor) to sensor agency225. Note that if no sensor action is associated with a given sensor,then no data is captured which improves efficiency. Note also that if nosensor is defined, then again no data is captured, which furtherimproves efficiency. In several embodiments, sensor agency 225 isresponsible for accepting captured data from data capture agency 224,querying the sensor registry 223 for associated sensor actions,executing the predetermined software identified for the sensor actionsto publish the sensor data to all of the identified destinations, and tomanage custom data publishers.

Note that in the following discussion, it is assumed that acts to beperformed by a business process are articulated in the language BPEL,although as would be apparent to the skilled artisan, any other languagemay be used.

In act 231 (FIG. 2B) of some embodiments, a business process manager 222starts up in act 231 and after initializing one or more variables, goesto act 232. In act 232, business process manager 222 reads a descriptorof a business process to be deployed (also called “deploymentdescriptor”) which may be expressed in the language BPEL as noted above.The deployment descriptor of some embodiments contains informationwhether or not sensors and sensor actions are configured for the BPELprocess and if configured, provides the file name(s) of theconfiguration files for sensors and sensor actions. Then, in act 233,business process manager 222 uses information from the just-describeddescriptor to deploy the BPEL process in the business process manager222. Then in act 224, the business process manager 222 checks if thisparticular BPEL process has any sensors. If not, then business processmanager 222 simply goes to act 236 to check if there are any additionalBPEL processes to be deployed and if so returns to act 232 and if notgoes to act 237 where it waits for receipt of tuples (that identify oneor more sensors as being enabled or disabled).

If in act 234 (FIG. 2B) business process manager 222 finds that thecurrent business process has one or more sensors, e.g. if a documentcontaining sensor definition 215 exists (having the name “sensors.xml”in one embodiment), then business process manager 222 registers thesensors as per act 235 in a sensor registry. Specifically, on findingthat sensors exist, sensor registry 223 is invoked which performs acts241-244 (FIG. 2B). Note that sensor registry 223 is implemented in someembodiments via functions that are called in-line by manager 222 (i.e.the same process which executes business process manager 222 continuesto execute after a context switch). However, other embodiments mayimplement sensor registry 223 as a separate process and/or separatethread from business process manager 222. In act 241, sensor registry223 reads sensor document 215 and goes to act 242. In act 242, functionsof the sensor registry 223 store (i.e. persist) various attributes ofthe sensors being defined in nonvolatile storage 247 (such as a disk)which is used as the sensor registry 223's storage.

In act 241, if a definition 216 (FIG. 2A) for sensor actions is not yetreceived for the current business process which is being deployed thensensor registry 223 simply returns control back to business processmanager 222, which continues on to act 236 (described above). In act 242(FIG. 2B) if sensor action definition 216 is received (e.g. at the sametime as sensor definition 215) then branch 245 is followed to performact 243. In act 243, sensor registry 223 reads each sensor action, whichin some embodiments, contains at least three items namely a sensor beingenabled, a destination to which data from the enabled sensor is to betransferred and a type which identifies a predetermined software to beexecuted, to perform the transfer to a destination of that type.

Depending on the embodiment and the implementation, such a tuple maycontain one or more additional items, such as a property that identifiesconfiguration information needed to interface with the destination and afilter that identifies a Boolean expression to be applied to the data indeciding whether or not to transfer and/or what data to transfer. Next,sensor registry 223 performs act 244 (FIG. 2B) wherein each tuple readin act 243 is stored (i.e. persisted) to non-volatile storage 247.

In act 237 (FIG. 2B) if a sensor action definition 216 is received (e.g.at a later time than the time at which sensor definition 215 isreceived), then as per act 249 business process manager 222 once againinvokes sensor registry 223 which performs act 243 to read the tuples(i.e. the sensors and sensor actions) in definition 216 and act 244 topersist them to nonvolatile storage 247. As noted above, on completionof act 244 control returns to business process manager 222 (FIG. 2B)which once again waits to receive another definition 216 for thebusiness process.

Referring to FIG. 2C, a business process 213 is executed in computers117 and 118 by business process manager 222, which performs acts 251-257as follows. Specifically, in act 251, business process manager 222starts up business process 213. Next, business process 213 waits toreceive input, as illustrated by act 252. When input is received, thebusiness process performs act 253, to execute a next activity that usesthe input, wherein the next activity is identified in a processdefinition 214 (which is expressed in the language BPEL in someembodiments). On completion of act 253, the business process manager 222does not go to act 255 as may be done in the prior art. Instead, oncompletion of act 253, business process manager 222 goes to act 254 tocheck whether or not a sensor is present.

In act 254, if a sensor is not present, then control transfers to act255 wherein business process manager 222 checks if there are any moreactivities to be performed (as per definition 214) and if so returns toact 253 (described above). If there are no more activities to beperformed then business process manager 222 goes to act 256 to generateoutput to be sent in a reply, and thereafter goes to act 257 thatcompletes execution of business process 213.

In act 254, if business process manager 222 finds that there is a sensorpresent in any portion of the activity executed in act 253 then thesoftware piece “data capture agency” 224 is invoked in line (in someembodiments although in other embodiments software piece 224 may be runas a separate thread). In act 261, the data capture agency 224 receivesa notification of the sensor being present. The embodiment illustratedin FIG. 2C supports enabling and disabling of sensors, and hence in act262, the data capture agency 224 checks if the sensor is enabled inwhich case data needs to be collected. In some embodiments, enablementof a sensor is programmatically determined by the data capture agency224 via a hash table which uses the sensor name as key.

If the answer in act 262 is no, then data capture agency 224 returnscontrol to the business process manager 222, e.g. in act 255 (describedabove). If the answer in act 262 is yes, then the data capture agency224 performs act 263 to capture the data from this sensor, andthereafter proceeds to act 264. In act 264, the data capture agency 224uses the captured data to invoke another software piece, namely “sensoragency” 225. Sensor agency 225 of several embodiments is invoked as anin-line function by data capture agency 224 in which case act 255 isperformed only after completion of acts 271-275. Delay betweenperformance of acts 264 and 255 may be reduced by using as endpoints aJMS queue and/or topic. In alternative embodiments, sensor agency 225may be implemented as a separate process and/or separate thread fromdata capture agency 224.

In act 271, the sensor agency 225 receives the captured data from datacapture agency 224. Next, in act 272, sensor agency 225 checks a sensoraction associated with the sensor, to see if a filter is present thereinfor use in transferring the captured data. If not then control transfersto act 274 (described below). If in act 272, data capture agency 224determines that a filter is present, then control transfers to act 273wherein appropriate data is inserted into a Boolean condition. If thisBoolean condition is not true, then control transfers to act 275(described below).

If in act 273, sensor agency 225 determines that the Boolean conditionis true, then control transfers to act 274 to transfer (e.g. bypublishing) the captured data to one or more destination(s) identifiedin the tuples description in sensor action definition 216 (FIG. 2A).When performing act 274, the sensor agency 225 is further programmed toidentify and execute one of predetermined softwares 226A and 226B (FIG.2A), to effectuate the transfer of captured data. A predeterminedsoftware to be executed at this stage is identified by use of thedestination's type from the tuple, with a mapping of the destinationtype to the predetermined software.

Such a mapping is hardcoded in software of some embodiments (e.g. in aswitch-case statement) in which the number of destination types is small(e.g. 3-4). In alternative embodiments, a mapping between a destinationtype and the interface software for that destination type is implementedin a table of a relational database or by use of a hash function, whenthe number of endpoint types is large (e.g. 10-15). In the exemplaryembodiment illustrated in FIG. 2A, if the destination type was queuetype, then predetermined software 226A (which is queue interfacesoftware) is automatically selected by use of the mapping (i.e. withoutany user input other than their input of endpoint type), and thissoftware is then executed to effectuate the transfer of captured data.

Predetermined software 226A can be used to send data to any ofdestinations 229A-229M (wherein A≦J≦M), because all these destinationsare of type queue. Hence, when invoking predetermined software 226A tointerface with a destination, the sensor agency 225 passes to it aspecific identity of the destination which was identified by the userwhen enabling the sensor. An identified destination 229A may be locatedin, for example, a business activity monitor (BAM) computer 299 whichmay contain other destinations which are of the same type or differenttype, such as a database 227P. Additional destinations 229J, 229M, 227Q,and 227R to which captured data may be transferred, can be located inother computers, such as a warehouse builder, an enterprise manager anda web portal.

Queue interface software 226A handles any destination which is of queuetype and hence software 226A can be used to send information to anydestination which is of type queue, such as queues 229A-229M, dependingon an identity with which software 226A is invoked. In FIG. 2A, software226A receives an identity of queue 229A from sensor agency 225, andhence sends captured data to queue 229A (as shown by the solid line298). Similarly, software 226B is used to transfer data to anydestination which is of type database, such as any of databases227P-227R (as indicated by a dashed line 297). Software 226B isidentified for use with such destinations when the user indicates thatthe sensor's data is to be transferred is to a destination of type“database” and also provides an identity of one of databases 227P-227R.

In addition, a user may supply their own custom software 226C for use ininterfacing to any type of destination not already supported, such as anemail server 228Z (e.g. if the captured data is to be sent by email).Although some embodiments as just described enable a user to identifyany one of several databases 227P-227R as the destination of the databeing captured, other embodiments enable the user to select merely thetype to be database (i.e. without requiring the user to specify anidentity of the database as illustrated in FIG. 5A). In such a case, thecaptured data is persisted in a database of a default name and locatedat a default location. As noted above, softwares 226A and 226B arewritten ahead of time prior to the user's selection of a destination'stype, and hence are available during execution of a business process toautomatically send data to destinations of the respective types.

In some embodiments, predetermined software to be executed for a sensoraction is identified from the publish type as follows. If ‘publish type’(looked up in the sensor registry for the current sensor action) isequal to ‘JMSTopic’ or ‘JMSQueue’ then J2EE JNDI mechanism is used toidentify the underlying JMS queue or topic given its name in theproperty ‘Publish Target’. If publish type is equal to ‘Database’, thepredetermined software is a database publisher which is provided to thesensor agency at startup (in its initialization file). If publish typeis ‘Custom’, the predetermined software is identified by a Java ClassName provided in property ‘Publish Target’.

While embodiments having a small number of publish types may use aseries of if statements as just described, other embodiments thatsupport a large number of publish types use an in-memory hash table forfast lookup. One or more such hash tables may be initially (at startup)retrieved from non-volatile memory of sensor registry 223 (whereininitial versions of hash tables may be stored prior to execution of thebusiness process). Note that the hash tables may be modified (i.e.re-configured) during execution, e.g. when sensor and/or sensor actiondefinitions are received and/or if a business process is re-deployed.

When invoking a predetermined software 226A, sensor agency 225 passes toit the location of data which has been captured and needs to betransferred as well as the name of the destination (i.e. endpoint) towhich the data is to be transferred. In embodiments that receive anyadditional attributes of the destination from the user (such as aproperty or a filter), the additional attributes are also supplied tothe predetermined software. In some embodiments, all such information isstored in a block, and an address of the block is passed to thepredetermined software 226A.

In several embodiments, the block contains header information (e.g. asshown in the top half of FIG. 4E) appended to the captured data, for usein identifying the entity that captured the data, such as process name,process instance, application server mid-tier instance, exact timestampwhen the data was captured, and identity of event that triggered thedata capture. In alternative embodiments, such information is simplyplaced on a stack and a context switch is performed by sensor agency225, thereby to begin execution of predetermined software 226A (i.e.perform act 274 in FIG. 2C).

On completion of execution of the predetermined software, sensor agency225 completes act 274 and goes to act 275 to check if there are any moredestinations to which the captured data is to be transferred and if sothen sensor agency 225 takes branch 276 and returns to act 272(described above). Act 275 implements support for multiple sensoractions for a given sensor, as shown by the presence of branch 276 inbox 225. Moreover, act 274 provides support for user-selectable softwareto be performed in a sensor action.

As noted above, sensor registry 223 of some embodiments maintains a hashtable (in memory or cache) that maps a sensor to its sensor actions. Inone embodiment, the hash table uses as key a given sensor name, and asvalue a list of sensor actions for the given sensor name. Sensorregistry 223 of such embodiments also provides functions that access thehash table to retrieve a list of destinations for a given sensor, e.g.Boolean hasSensorAction(String sensorName) and ListgetSensorActions(String sensorName).

Note that the number of additional destinations associated with a givensensor (whose data has been captured) determines the number of timesthat branch 276 is taken. When the captured sensor data has beentransferred to all destinations associated with the given sensor, thenbranch 277 is taken to return to act 255 in the business process manager222, which then continues its execution of the business process 213 (asdescribed above).

A graphical user interface (GUI) 310 (FIG. 3A) of a business processmodeler (BPM) in some embodiments of such a computer 319 (FIG. 3A)displays (as per act 111 in FIG. 1A) each sensor that exists, overlaidon a drawing of business process 313. A sensor may be identified by, forexample, an icon 312I (FIG. 3A) of a magnifying lens that is shownadjacent to a business process portion 313I such as an activity fromwhich data is to be captured. Depending on the embodiment,identification of each sensor by the GUI may be performed in any manner,e.g. by highlighting business process portion 313I (in a predeterminedcolor such as red for a disabled sensor and green for an enabled sensor)instead of or in addition to icons 312I.

A user of GUI 310 may supply the configuration information in act 112(FIG. 1A) even after a business process 313 has been deployed (e.g.while it is executing), because sensors can be created at any time inthe embodiments illustrated in FIGS. 1A-1C. Specifically, the user canidentify which (if any) of the portions 313A-313IN in business process313 is to be monitored, i.e. to start the capture of data therefrom. Insome embodiments, no further detail is needed to define a sensor, i.e.other than to select a business process portion whereby the GUI computerautomatically assigns a name to the sensor and makes note of theactivity (or other portion) of the business process that is to bemonitored. Such embodiments may send the captured data to a defaultdestination, and permit the user to override the default in anotherscreen.

Some embodiments require additional detail from a user to create eachsensor (e.g. sensor name and sensor action), and the additionalinformation is received through an additional screen which may bedisplayed, e.g. as soon as the user double clicks a mouse button afterplacing the cursor on portion 313I (see 112 in FIG. 1A). Specifically,in such embodiments GUI 310 displays another screen 320 (called“property inspector”) of the type illustrated in FIG. 3B. In thisproperty inspector screen 320, the user creates a sensor by selectingthe “sensors” tab 321, which results in display of a screen 301C shownin FIG. 3C for creating a sensor for an activity. Note that activitysensor screen 301C (FIG. 3C) is displayed in this sequence becauseproperty inspector screen 320 was invoked by selecting an activity (inthis example the activity “Invoke”) in GUI 310 (FIG. 3A). Alternatively,a user may directly go to process structure panel 322 (FIG. 3B), andright click on item 323 labeled “sensors” and on doing so, a drop-downlist box showing three types of sensors namely activity, fault andvariable is displayed. On selection of an “activity” sensor in this box,screen 301C (FIG. 3C) is displayed.

When screen 301C is first displayed to the user, field 312C is alreadyfilled in by the GUI computer, with the name of the activity which is tobe monitored. In this embodiment, the user is required to type in a namefor the sensor being created in field 311C (although as noted elsewhere,such a name may be automatically generated in some embodiments). Field319C contains the default value “ALL” which means data capture is beperformed whenever the activity changes state (e.g. on invocation of theactivity, on completion of the activity, when the activity has an errorand when the activity is re-tried). A user may select a specific stateof an activity, if the sensor being created is for capturing data inonly that specific state.

In screen 301C, user-selected data to be captured is identified in anarray 350C which is initially empty. In some embodiments, the userclicks on a “Create” button to reach a screen (not shown) which listsall variables that are defined for the current activity. On the userselecting a variable in the list (or a portion of the variable's name) arow 351C is automatically filled by the GUI computer, using information313C-315C from the variable's definition in the schema for the businessprocess.

Screen 301C contains a panel 390C for correlation of the sensor beingcreated with a sensor action. Initially, no sensor actions areassociated with the current sensor (although one or more sensor actionsmay have been defined by the user for other sensors). Hence, the userneeds to click on the Add button to reach a screen (not shown) thatdisplays a list of all previously defined sensor actions.

The user selects one or more sensor actions in this list (of sensoractions) to associate them with the sensor being created in which casethe associated sensor actions are listed in the panel 390C. In FIG. 3C,the user has selected BAMFeed action 391C for association with thesensor. Note that the just-described list of sensor actions may be emptyif no sensor actions were previously defined, and if so the user mustclick on a create button to reach a sensor action screen (e.g. screen inFIG. 4A).

After receipt of configuration information about a sensor, a descriptionof one or more received values (e.g. see FIG. 3D) is generated by theGUI computer in an act 114 (FIG. 1A), e.g. in a predetermined languagesuch as XML. During such generation, the GUI converts values from aninternal format (in which the values are initially held on receipt fromthe user) into XML format in accordance with a schema of the typeillustrated in FIG. 3E, and thereafter stores the result in a sensorfile (e.g. named “sensor.xml”) of the type shown in FIG. 3D. In theembodiment illustrated in FIG. 3D, not all received values arearticulated in the sensor definition 215D, e.g. sensor action name“BAMFeed” in FIG. 3C is not present in FIG. 3D. As noted below, in thisembodiment the association of a sensor with its sensor actions isactually articulated in the sensor action definition.

In other embodiments such an association between a sensor and itsactions may be articulated in the sensor definition itself. Moreover,instead of XML any other language may be used describing the sensors,depending on the embodiment. After act 114, addition of sensor 312I iscomplete, and GUI 310 returns to displaying (as per act 111 in FIG. 1A),a modified version of the business process drawing now containing anicon for sensor 312I (see FIG. 3F) to inform the user that this sensoris currently in existence.

It is not necessary for a user to enter an association of a sensor withan action during sensor definition in screen 301C in FIG. 3C, becausesuch association may be done at a later stage (e.g. the user may set upall sensors first, followed by setting up of sensor actions, followed byforming associations therebetween). When a user finishes identifying allsensors and/or sensor actions for a given business process 313 (e.g. byclicking a button), computer 219 transmits the one or more definitions215 to computers 217-218 that execute the business process, andthereafter proceeds to perform the actions illustrated in FIG. 1C(described above).

In some embodiments, if a user has defined a sensor, a sensor action andalso an association, then the icon that is displayed for sensor 312I ismodified, e.g. the magnifying lens is shown in a different color or isshown shaded as compared to the icon displayed when only the sensorexists (without a sensor action associated thereto). Many embodiments donot make a distinction, in the drawing shown in FIG. 3A, between sensorswith and without sensor actions defined, i.e. the same magnifying glassicon 312I is displayed if a sensor is configured for activity 313Iregardless of any sensor actions associated with that sensor.

Sensors of the type described above in reference to FIGS. 3A-3J providea much more fine-grained way for a user to ‘show interest’ in certainaspects of the business, e.g. by providing Activity sensors withembedded variable sensors, that is the sensor fires in the case where anactivity reaches a certain state (‘completed’) and then the variablesensor contains the data of that activity, for example: “Give billingaddress of PO if shipping completed successfully”

The specific manner in which a destination's identification and type arereceived by GUI 310 can differ depending on the embodiment. In someembodiments, double clicking of the mouse on icon 312I causes theproperty inspector screen to be displayed by the GUI, which contains oneor more fields for the user to enter identification of the destination(i.e. endpoint) as well as selection of an action to be performed totransfer captured data to the destination. Examples of such screens inone embodiment are illustrated in FIGS. 4A, 4G, 4I and 4K (describedbelow).

An identified sensor, and a corresponding identified destination (withits type) are implicitly associated with one another in some embodimentsby performance of acts 122 and 124 (FIG. 1B) in a single operation. Asnoted above, a destination's identity and type are two attributes of asensor action that are used in some embodiments. In certain embodiments,a user may associate a sensor with one or more sensor actions explicitlyin a screen for creating a sensor (e.g. FIG. 3C) by identifying thereinname(s) for the sensor action(s), with the sensor action itself beingcreated in another screen (e.g. in FIG. 4A).

Some embodiments of the GUI computer 219 describe each associationbetween a sensor and a sensor action as a tuple of (sensor, endpoint,and endpoint type) in a sensor action definition (expressed in XML).Note that such a tuple may include one or more additional pieces ofinformation, such as a filter to be applied to the captured data and/orother configuration information about the endpoint. If the businessprocess is not executed in GUI computer 219, in which the sensor andsensor action are defined, then the description(s) generated by computer219 is/are transferred to one or more computers 217-218 (FIG. 2A) foruse therein during execution of the business process.

In some embodiments, it is possible for computer(s) 217-218 to receive adefinition 214 (FIG. 3F) of the business process 313 as well as adefinition 215 of sensors ahead of time and already be executing thebusiness process prior to receipt of any sensor actions. Specifically,the one or more computer(s) 217-218 (FIG. 2A) execute a business processone activity at a time, while checking before/during/after execution ofeach activity as to whether or not capture of data is enabled. No datacapture is performed in computers 217-218 that are executing a businessprocess 313, until receipt of a sensor action definition of at least onetuple, after which time data capture becomes possible for the businessprocess portions that have sensor(s).

If a sensor action is configured for a given sensor 312I in a definition216, then data from business process portion 313I is captured (as peract 132 in FIG. 1C). The data that is captured (similar or identical tothat shown in FIG. 4E) is predetermined, e.g. by a user who has markedthe business process portion as having a sensor. The captured data isthen transferred (as per act 133) to the endpoint associated with sensor312I in sensor action definition 216 (FIG. 2A). Note that the transferis performed directly without an intermediate step of storing in adatabase and the related latency. The transfer of captured data iseffectuated by execution of a specific predetermined software (similarto that shown in FIG. 4M) that is uniquely associated with a type of theendpoint identified in the sensor action definition.

One example of predetermined software implements a first-in-first-out(FIFO) mechanism, and is used if the endpoint's type indicates theendpoint as being a queue. Another example of predetermined softwareimplements a SQL query to store the data if the endpoint's typeindicates the endpoint as being a database. Note that transfer of datato an end point may be disabled in a manner similar to that describedabove for enabling, e.g. by the user marking a tuple that was previouslyenabled as now being “disabled” in GUI 310, whereby GUI 310 notifies theone or more computers 217-218 of the same. Note also that the dataactually transferred may be more than, less than or different from thecaptured data, e.g. if a header is added to the data, or if the data isfiltered prior to transfer as described below.

A sensor in accordance with the invention can be created and/or enabledany number of times (e.g. by double clicking the business processportion 213I even when a sensor icon 212I is displayed adjacentthereto), which can make the sensor become associated with multipleendpoints. All endpoints associated with a given sensor are displayed ina list 329 in the property inspector (FIG. 3B). Hence, a given sensor ofa given business process may be associated with any number of endpoints(and respective actions to be performed to transfer data to theendpoints). In such a case, the one or more computers 217-218 thatexecute the business process 213 are programmed in accordance with theinvention to automatically transfer the sensor's data to the multipleendpoints. As noted above, specifying multiple endpoints for a singlesensor causes the computers 217-218 to transfer the same data to each ofthe multiple endpoints which therefore receive this data in real time.

Note that GUI 310 is described above as being displayed by a businessprocess modeler (BPM) software in computer 219. If a BPM user enables asensor 312I by identifying an endpoint B having type C, the GUI 310transfers description of a first tuple (A, B, C) to computers 217-218(in a sensor action definition). A GUI of another application such as abusiness activity monitor (BAM) software may also display the samesensor 312I (also overlaid on the drawing of business process 313) toits user. In this example, a BAM user may also enable sensor 312I (i.e.the same sensor 312I previously enabled by the BPM user). If the BAMuser identifies a different endpoint D (and its type E) when enablingsensor 312I then, computers 217-218 may receive a second tuple (A, D,E). Therefore, in computers 217-218, the same sensor 312I becomesassociated with two endpoints B and D (endpoint B was identified by theBPM user and endpoint D was identified by the BAM user).

In this example, two tuples are provided to computers 217-218 by the BAMand BPM softwares that operate independent of each other. Hence datacaptured by sensor 312I is transferred to both endpoints B and D byexecution of predetermined softwares associated with the correspondingtypes C and E respectively. The predetermined softwares that areexecuted transfer the captured data in real time to the respectiveendpoints, thereby to eliminate latency that is otherwise created ifsuch data were required to be persisted in a database prior to transferto the identified endpoints.

Moreover, identification of multiple endpoints through the GUI and useof predetermined softwares eliminates the need for a user to manuallyprogram a callback function or a stored procedure to effectuate thetransfer to each individual endpoint. Also, in such embodiments,disabling a transfer from a sensor (e.g. sensor A) to one of multipleendpoints (e.g. endpoint B) does not affect transfer of data capturedfrom that sensor to one or more remaining endpoints (e.g. endpoint D)for which the sensor (e.g. sensor A) continues to remain enabled.

Note that definitions 214, 215 and 216 that are sent to computers217-218 (which execute the business process) may be articulated by GUIcomputer 219 in languages that may be same as or different from eachother, depending on the embodiment. For example, in some embodiments,definitions 214, 215 and 216 are all expressed in a common language,such as the extensible markup language (XML), while in other embodimentsone or more definitions are expressed in languages different from oneanother. Even when expressed in the common language XML, one of thedefinitions, namely definition 214 is expressed in a predeterminedgrammar thereof, such as BPEL (described in the Background sectionabove).

Also, in many embodiments, all three definitions 214, 215 and 216 aremaintained in three corresponding documents. Maintaining definition 215separate from definition 214 ensures that definition 214 remainsunchanged, and therefore compatible with any tool in conformance withthe language in which definition 214 is expressed (e.g. BPEL). Even ifnot articulated in the language BPEL, definition 214 may contain anumber of similar activities, for example, an invoke activity to invokea web service, a receive activity to wait for a message from an externalsource and a throw activity to raise an exception error.

Furthermore, definition 215 (FIG. 2A) may identify any portion of abusiness process 213 articulated in definition 214 regardless of whetherthat portion is logic or data or a combination thereof. In severalembodiments, at least one sensor in definition 215 is identified as aportion of the business process that contains a variable whose data istransferred on being enabled, while another sensor contains a fault onwhose occurrence the captured data is transferred. In one embodiment,the fault sensor simply identifies the fault occurrence. However, if auser has chosen a ‘database’ publish type, a SQL query is used to getthe number of faults.

Maintaining definition 216 separate from definition 215 ensures thatsensors defined in definition 215 can be enabled or disabled independentof their definition, e.g. enabled or disabled during run time.Furthermore, articulating definition 216 in the same language asdefinition 215 ensures that a common input mechanism (e.g. the samelexical analyzer) can be used by computers 217-218 for processing bothdefinitions 215 and 216.

A fault sensor and a variable sensor can be created in a manner similarto that described above in reference to FIGS. 3C to 3F. Specifically,the user may select “fault” in a list of sensor types that is displayedon selection of the sensor item 323 in FIG. 3B, and on doing so screen301G (FIG. 3G) is displayed to the user. The user then types in the nameof a sensor being created in field 311G, and selects a namespace infield 343G, as well as a name of the fault in field 344G. Sensor actionsare selected in panel 390G similar to that described above in referenceto panel 390C.

The definition of a fault sensor which is generated by the GUI computeris illustrated in FIG. 3H. This definition is also generated inconformance with the schema for sensor definitions illustrated in FIG.3E. Note that in FIG. 3H, “is” labeled 343H is mapped to a name spacethat corresponds to the fault named in field 344G. Moreover, the usermay define a variable sensor in a manner similar to definition of thefault sensor, as illustrated in FIGS. 3I and 3J. The variable sensormonitors for any changes in a variable (or a portion thereof) in thetarget identified in field 312I. Note that in the illustration shown inFIG. 3I, two sensor actions 391I and 392I are invoked whenever there isa change in this variable.

In some embodiments of the invention, a screen 401A (FIG. 4A) isdisplayed in response to the user double clicking on a sensor actionitem 324 in panel 322 (FIG. 3B). Note, however, that this screen 401Amay alternatively be reached through one of the sensor creation screensillustrated in FIGS. 3C, 3G and 31 by clicking the “Add” button therein.In the example screen 401A shown in FIG. 4A, the sensor action is named“BAMFeed”. Screen 401A contains a number of fields, such as a field 411Alabeled “Name” in which the user may supply a name to be used inreferring to this tuple (also called “sensor action”).

Screen 401A also contains a field 412A labeled “Publish Type” in whichthe user selects a type for the endpoint, e.g. from an enumerated setshown in a drop-down list box that is displayed by clicking in field412A. In the example shown in FIG. 4A, there are three choices for thevalue in field 412A namely “JMS Queue”, “Database,” and “Custom”, andthe user has selected the endpoint type to be “JMS Queue”. Note thatalthough in some embodiments only three choices are displayed in field412A for selection by a user, other embodiments may display fewer ormore choices. For example, FIG. 4D shows (in the list 420 in portionFIG. 4D 1) that four choices are displayed to the user in one specificembodiment.

The embodiment illustrated in FIG. 4A permits a user to supply their ownsoftware for interfacing to an endpoint by identifying the endpoint'stype as being “custom” in field 412A as shown in screen 401A illustratedin FIG. 4A. In the example shown in FIG. 4A, the user has identified infield 414A an endpoint of name “loanflow.LoanFlowTicker” to be accessedby custom software. On clicking the “OK” button on screen 401 A, theuser is prompted to supply additional information in a screen 420 (FIG.4B) which elicits from the user, the configuration information about thecustom software in greater detail.

For example, in field 421 of screen 420 (FIG. 4B) the user identifies aname of the new class of the custom software to be LoanFlowTicker.Moreover in field 422 of screen 420 the user identifies a package inwhich the new class is contained to be “loanflow”. Note that screen 420contains another field 423 in which the user supplies the identity ofanother package which is being extended, e.g. Java.lang.Object. Byidentifying and providing custom software 226C (FIG. 2A) which has thename “loanflow.LoanFlowTicker”, the user can programmatically dowhatever they want with the data captured by sensor 212I. In an exampleof the type of arbitrary action permitted, custom software 226C of FIG.2A prepares an email message based on certain values in the captureddata (FIG. 4E), and transfers the email message to an email server 228Zfor onward transmission to an email address (e.g. the user's emailaddress).

Therefore, in screen 420 (FIG. 4B) the user provides configurationinformation identifying e.g. the custom software's name, and location,such as Java class which conforms to a publicly-documented Java API orother such software identity as will be apparent to the skilled artisan.An example of such custom software is provided in FIG. 4M. Instead ofproviding custom software, in other embodiments, the user may simplyselect one of predetermined softwares 226A and 226B in screen 401A byselecting an appropriate one of several predetermined values (such as“database” or “JMS Queue”) that are selectable in field 412A of FIG. 4A.

A user's selection of one such predetermined software eliminates theneed for the user to write custom software. Instead by simply pointingand clicking the user is able to create or modify the type ofdestination(s) to which captured data is to be transferred.Specifically, a non-custom publish type selected by a user in field 412Arequires an actual endpoint, such as a queue or a database to beidentified in the publish target field 414A (discussed in nextparagraph). Such an endpoint may be located in a computer 299 (shown atthe bottom of FIG. 2A) that may contain a business activity monitor(BAM) software. Computer 299 of some embodiments is different fromcomputers 217-218 in which the business process is being executed,although in other embodiments a single computer may be used.

Screen 401A also contains a field 414A labeled “Publish Target” in whichthe user identifies the endpoint. In the example shown in FIG. 4A, theuser has identified the endpoint to be “jms/bamTopic”, which is a namethat can be resolved by JNDI to identify the underlying physical Queueor Topic. JNDI is a J2EE standard used to resolve names to theirunderlying physical entities (queues, toics, databases etc.) In thisembodiment, the user may use any XPATH expression to identify theendpoint in field 414A. Note that an endpoint identified by a user inpublish target field 414A (FIG. 4A) is interfaced by predeterminedsoftware that executes within computers 217-218 in which the businessprocess is being executed although in alternative embodiments such anendpoint (to which the data is transferred) may be hardcoded in thesoftware (which may be predetermined or custom as discussed above).

In several embodiments, a field 415A labeled “Filter” is optionallyreceived from the user, and in this example in FIG. 4A the user has leftit blank (such a filter is discussed elsewhere herein). The field 416Aindicating enablement of the sensor action has the value “checked” bydefault when screen 401A is first displayed to the user, and becomes“unchecked” when clicked on by the user, as may be done when datatransfer from a previously enabled sensor is to be discontinued.

On clicking the “OK” button on screen 401A (FIG. 4A) the GUI articulatesa sensor action definition 216 (e.g. in XML) as shown in FIG. 4C, forinstructing computers 217-218 to supply the captured data to customsoftware 226C (FIG. 2A), based on the information supplied by the user.Specifically, the information entered by the user in fields 411A, 412A,414A and 415A of screen 401A (FIG. 4A) is stored temporarily invariables in a memory of the GUI computer, when generating a definition216 (FIG. 4C) of the sensor action, after the user finishes entering theinformation in screen 401A. Sensor action definition 216 contains notonly a tag “action” which describes the sensor action itself, but alsoone or more “sensorName” tags with which the sensor action is associatedas shown in FIG. 4C. As noted elsewhere, a sensor action may beassociated in a screen for creating or editing a sensor as shown inFIGS. 3C, 3G and 31.

Sensor action definition 216 (FIG. 4C) may be articulated by the GUIcomputer, in conformance with an XML Schema Definition of the type shownin FIG. 4D. Reference numerals in several of FIGS. 4A-4L forcorresponding items (such as definitions and descriptions) are obtainedby replacing letter suffixes in the reference numerals, wherein theletter suffixes correspond to respective figure numbers. For example,definition 412D in FIG. 4D defines the endpoint's type field 412A inFIG. 4A. Definition 421 of FIG. 4D is optional and not shown in FIG. 4A.After articulation of definition 216 (FIG. 4C), the GUI computer returnsto displaying the business process overlaid with sensors (similar tothat illustrated in FIG. 2A), which in some embodiments, shows amodified version of sensor 312I to indicate that this sensor is enabled.

At this stage, as noted elsewhere, a user may again double click on thesame portion 313I, to associate multiple endpoints with sensor 312I. Inresponse to configuring multiple sensor actions, multiple definitions216 are produced in some embodiments, one for each sensor action. Also auser may double click on a different portion 313N for example, to enabledata capture therefrom. The user may associate a common sensor actionwith multiple sensors in the respective screens (e.g. see FIGS. 3C and31), in which case a common sensor action definition 216 (FIG. 4C) isgenerated to contain multiple sensor names, such as 417C and 498 (FIG.4C). A sensor which has multiple actions may be illustrated in someembodiments of FIG. 3A by displaying a modified version of the sensoricon, such as a double magnifying lens to indicate the presence ofmultiple actions, although in other embodiments no distinction is madebetween sensors with one or more actions.

The GUI computer, of some embodiments is implemented by the softwareJDeveloper BPEL Designer to maintain a single sensor action file (calledsensorAction.xml) that contains all sensor action definitions. Thesensor action file is identified in a deployment descriptor of the BPELprocess. The sensor action file in the GUI computer is automaticallykept in synchronization with the sensors and actions that the usermodels in BPEL designer in the GUI computer. Such a sensor action file(FIG. 4C) is eventually (e.g. in response to a user indicatingcompletion of sensor and/or sensor action configuration) transmitted tothe one or more business process computers 217, 218 for storage in thesensor registry 223 (FIG. 2A) in a non-volatile memory therein.

In one illustrative embodiment, business process manager 222 receivessuch files from the GUI computer and stores them in the sensor registry223, although in other embodiments sensor registry 223 interfacesdirectly with the GUI computer for receipt and storage of suchconfiguration files 215 and 216. Note that files 215 and 216 containpure metadata in many embodiments, which respectively (a) trigger datacollection by the sensor framework in response to events identified bythe business process manager 222, and (b) identify the endpoints towhich the data is transferred by the sensor framework, e.g. by use ofstandard J2EE JMS APIs (to enqueue the sensor data in the JMS Queue). Asfiles 215 and 216 (FIG. 2A) contain merely metadata, there is norequirement to use business process manager 222 to simply store suchfiles in the sensor registry 223.

As is well known to the skilled artisan, JMS is a commonly available setof APIs and frameworks that support reliable, scalable, portable, andasynchronous messaging among J2EE applications. JMS supports two basicstyles of message-based endpoints, namely a queue and a topic. Multiplereceivers can listen for messages in a queue, but the arrived messagecan be retrieved by only one receiver. Once the message is retrieved, itis deleted from the queue and is no longer available to other receivers.A topic endpoint lets multiple subscribers listen for messages that arepublished to the topic. Unlike a queue, a message published to a topicdoes not get deleted once it is retrieved. The message stays on thetopic and is available for all subscribers. In the example illustratedin FIG. 2A, a common predetermined software 226A is used to transferdata to both styles of endpoints (queue and topic), because both have amessage interface (although after receipt each handles the messagedifferently).

Referring to FIG. 4G, screen 401G contains a publish type field 412Gwherein the user has selected the value JMS Queue, and another field413G labeled “JMS Connection Factory” in which the user supplies aproperty of the endpoint to be used in finding the endpoint. The usermay type into field 413G the identity of an object that contains theconfiguration parameters in conformance with the Java Messaging System(JMS) Application Programming Interface (API) which is to be used toaccess the endpoint. The configuration parameters in such an object mayidentify, for example, a namespace in which the endpoint is to be found,wherein the namespace conforms to Java Naming and Directory Interface(JNDI). In the example shown in FIG. 4G, the user has identified theobject to be “jms/QueueConnectionFactory” in the field 413G, and the GUIcomputer generates a property name tag 413H (FIG. 4H) in conformancewith the sensor action type's property description 418 (FIG. 4D).

In an example screen 401I illustrated in FIG. 41, the user has named infield 411I the sensor action to have the value “BigMoneyBAMAction” andselected in publish type field 412I the value to be “JMS Queue” (whichis same as in screen 401G in FIG. 4G). The user has also set, in field413I (in screen 401I in FIG. 41) a value of property JMS ConnectionFactory to be “jms/QueueConnectionFactory” (also same as in screen401G). In screen 401I however, the user identifies a different endpointin field 4141 to be “jms/bigMoneyQueue”, than the endpoint identified infield 414G. In the example illustrated in FIG. 41, the user alsospecifies a filter in field 415I, to pass data only when the loan amountis larger than $100,000.

When definitions 216 of the two respective endpoints “jms/bigMoneyQueue”and “jms/bamTopic” are both transferred (e.g. in a single sensor actiondocument) to computers 217 and 218, a sensor registry in these computersis updated to identify the two endpoints “jms/bigMoneyQueue” and“jms/bamTopic” as the destinations of any data captured from sensor312I. Note that while endpoint “jms/bamTopic” receives all the datacaptured by sensor 312I, the other endpoint jms/bigMoneyQueue receivesonly that data which has been filtered by the user-specified filter (infield 415I of screen 401I in FIG. 41), i.e. when the Boolean conditionis satisfied. Referring to FIG. 2A, data captured from sensor 312I istransferred without any filtering in act 273 by an initial performanceof act 274 for the endpoint jms/bamTopic, followed by the “Y” branch outof act 275 to return to act 272, followed by filtering in act 273 andtransfer of the filtered data in a repeated performance of act 274 forthe endpoint jms/bigMoneyQueue. Note that transfer of captured data in apredetermined format (as shown in FIG. 4E, in accordance with a schemashown in FIG. 4F) to each of the two endpoints “jms/bigMoneyQueue” and“jms/bamTopic” is performed as soon as the data is captured, without anintermediate step of storing the data in a database.

Although the captured data is not stored in a database prior totransmission to an endpoint, it is possible for the user to select anendpoint to be a database itself, in which case the captured data isstored in the database (instead of or in addition to transfer to anyother endpoints specified by the user). Selection of a database isillustrated in a screen 401K in FIG. 4K wherein the user has named thisaction to be “Persisting Action” in field 411K. In this particularembodiment, the user merely selects the endpoint type in field 412K tobe the database type, and there is no need for the user to supply anyfurther information. On the user clicking the “OK” button, the graphicaluser interface (GUI) articulates a definition 216 (i.e. sensor action)e.g. in XML as shown in FIG. 4L.

On screen 401K (FIG. 4K) if desired, the user may optionally supply aBoolean condition to be applied to captured data in field 413K beforethe data is persisted into the database. Note that there is no fieldnamed “Publish Target” in screen 401K in FIG. 4K because selection of a“database” type as the endpoint type, in this embodiment, results inautomatic identification of a default database which has a defaultlocation. In the illustrative embodiment shown in FIG. 4K, there areplace-holders for such fields, e.g. place-holder 495 which is shownhatched. Other embodiments may enable the user to supply an XPATHexpression to identify a specific database (which may be one of severaldatabases as illustrated in FIG. 2A), by receiving the database'sidentity in a field named “Publish Target” which is added to screen 401Kin these other embodiments.

In some embodiments, two properties are added to a file (FIG. 5B) whichis used to deploy the business process, to identify the files 511, 512and 513 that contain the respective names of the business process file(named “bpel.xml”), the sensor file (named “sensor.xml”) and the sensoraction file (named “sensorAction.xml”). By using separate files in theseembodiments, for the sensor and sensor actions definitions, the businessprocess file is kept unchanged, thereby to implement an overlay of thesensors and sensor actions on the business process (instead of modifyingthe business process itself).

Computers 219, 218 and 217 of the type illustrated in FIG. 2A maycontain one or more hardware and software components of the typediscussed next. Specifically, a computer system 600 includes a bus 602(FIG. 6A) or other communication mechanism for communicatinginformation, and a processor 605 coupled with bus 602 for processinginformation. Computer system 600 also includes a main memory 606, suchas a random access memory (RAM) or other dynamic storage device, coupledto bus 602 for storing information and instructions to be executed byprocessor 605.

Main memory 606 also may be used for storing temporary variables orother intermediate information during execution of instructions to beexecuted by processor 605. Computer system 600 further includes a readonly memory (ROM) 608 or other static storage device coupled to bus 602for storing static information and instructions for processor 605. Astorage device 610, such as a magnetic disk or optical disk, is providedand coupled to bus 602 for storing information and instructions.

Computer system 600 may be coupled via bus 602 to a display 612, such asa cathode ray tube (CRT), for displaying information to a computer user.An input device 614, including alphanumeric and other keys, is coupledto bus 602 for communicating information and command selections toprocessor 605. Another type of user input device is cursor control 616,such as a mouse, a trackball, or cursor direction keys for communicatingdirection information and command selections to processor 605 and forcontrolling cursor movement on display 612. This input device typicallyhas two degrees of freedom in two axes, a first axis (e.g., x) and asecond axis (e.g., y), that allows the device to specify positions in aplane.

As described elsewhere herein, transportation planning is performed bycomputer system 600 in response to processor 605 executing one or moresequences of one or more instructions contained in main memory 606. Suchinstructions may be read into main memory 606 from anothercomputer-readable medium, such as storage device 610. Execution of thesequences of instructions contained in main memory 606 causes processor605 to perform one or more acts described herein and illustrated inFIGS. 1A-1C. In alternative embodiments, hard-wired circuitry may beused in place of or in combination with software instructions toimplement the invention. Thus, embodiments of the invention are notlimited to any specific combination of hardware circuitry and software.

The term “computer-readable medium” as used herein refers to any mediumthat participates in providing instructions to processor 605 forexecution. Such a medium may take many forms, including but not limitedto, non-volatile media, volatile media, and transmission media.Non-volatile media includes, for example, optical or magnetic disks,such as storage device 610. Volatile media includes dynamic memory, suchas main memory 606. Transmission media includes coaxial cables, copperwire and fiber optics, including the wires that comprise bus 602.Transmission media can also take the form of acoustic or light waves,such as those generated during radio-wave and infra-red datacommunications.

Common forms of computer-readable media include, for example, a floppydisk, a flexible disk, hard disk, magnetic tape, or any other magneticmedium, a CD-ROM, any other optical medium, punch cards, paper tape, anyother physical medium with patterns of holes, a RAM, a PROM, and EPROM,a FLASH-EPROM, any other memory chip or cartridge, a carrier wave asdescribed hereinafter, or any other medium from which a computer canread.

Various forms of computer readable media may be involved in carrying oneor more sequences of one or more instructions to processor 605 forexecution. For example, the instructions may initially be carried on amagnetic disk of a remote computer. The remote computer can load theinstructions into its dynamic memory and send the instructions over atelephone line using a modem. A modem local to computer system 600 canreceive the data on the telephone line and use an infra-red transmitterto convert the data to an infra-red signal. An infra-red detector canreceive the data carried in the infra-red signal and appropriatecircuitry can place the data on bus 602. Bus 602 carries the data tomain memory 606, from which processor 605 retrieves and executes theinstructions. The instructions received by main memory 606 mayoptionally be stored on storage device 610 either before or afterexecution by processor 605.

Computer system 600 also includes a communication interface 615 coupledto bus 602. Communication interface 615 provides a two-way datacommunication coupling to a network link 620 that is connected to alocal network 622. Local network 622 may interconnect multiple computers(as described above). For example, communication interface 618 may be anintegrated services digital network (ISDN) card or a modem to provide adata communication connection to a corresponding type of telephone line.As another example, communication interface 615 may be a local areanetwork (LAN) card to provide a data communication connection to acompatible LAN. Wireless links may also be implemented. In any suchimplementation, communication interface 615 sends and receiveselectrical, electromagnetic or optical signals that carry digital datastreams representing various types of information.

Network link 620 typically provides data communication through one ormore networks to other data devices. For example, network link 620 mayprovide a connection through local network 622 to a host computer 625 orto data equipment operated by an Internet Service Provider (ISP) 626.ISP 626 in turn provides data communication services through the worldwide packet data communication network 624 now commonly referred to asthe “Internet”. Local network 622 and network 624 both use electrical,electromagnetic or optical signals that carry digital data streams. Thesignals through the various networks and the signals on network link 620and through communication interface 618, which carry the digital data toand from computer system 600, are exemplary forms of carrier wavestransporting the information.

Computer system 600 can send messages and receive data, includingprogram code, through the network(s), network link 620 and communicationinterface 618. In the Internet example, a server 660 might transmit amission (which is part of a transportation plan) through Internet 628,ISP 626, local network 622 and communication interface 615.

The instructions for performing acts 111-116 and 121-124 in FIGs.1A and1B or alternatively acts 131-133 in FIG.1C may be executed by processor605 as they are received, and/or stored in storage device 610, or othernon-volatile storage for later execution. In this manner, computersystem 600 may obtain the just-described instructions and any relateddata in the form of a carrier wave and/or an optical disk.

Note that FIG. 6A is a very low-level representation of many hardwarecomponents of a computer system. Several embodiments have one or moreadditional software components in main memory 606 as shown in FIG. 6B:Operating System 631 (e.g. Microsoft WINDOWS 2000), Database Server 635(e.g. Oracle Server v9i2 for the source computer; e.g. Oracle Server v8ifor the target computer), Java Development Kit 633 (e.g. JDK v68), JavaXMLParser 632 (e.g. xmlparser available from Oracle Corporation), JDBCdrivers 634 (e.g. JDBC driver available from Oracle Corporation). Acomputer system for computers 217 and/or 218 may also include additionalsoftwares such as business process manager 222, sensor framework 201,application server 638 (whereas a computer system for the GUI computer219 may include business process modeler 221).

In some embodiments of the invention, the sensor data is persisted in adatabase using a predefined relational schema. The following publicviews can be used from a client GUI (such as Oracle Warehouse Builder,portal, etc.) to query the sensor values using SQL. A view calledBPMPROCESSES gives an overview of all the deployed business processesacross the domains of a Business Process Manager (BPEL PM). Name TypeSize I? N? Comment NAME NVARCHAR2 100 U1, 1 N Name of the BPEL processREVISION VARCHAR2 50 U1, 2 N Revision of the BPEL process DOMAIN_IDVARCHAR2 50 U1, 3 N BPEL PM domain name BASE_URL NVARCHAR2 256 N Thebase URL of the BPEL suite SENSOR_URL NVARCHAR2 256 N The URL of thesensor file SENSOR_ACTION_URL NVARCHAR2 256 N The URL of the sensoraction file

A view, called BPMPROCESSANALYSIS REPORT gives an overview of all theprocess instances of the BPEL PM. Another view calledBPMPROCESSINSTANCES is a subset of view BPMPROCESSANALYSISREPORT andcontains only those process instances where sensors are defined for thecorresponding BPEL process and the sensor action performed at leastonce. Both these views have the following schema. Name Type Size I? N?Comment ID NUMBER PK N Unique (cube) instance Id BPEL_PROCESS_NAMENVARCHAR2 100 N Name of the BPEL process BPEL_PROCESS_REVISION VARCHAR250 N Revision of the BPEL process DOMAIN_ID VARCHAR2 50 N BPEL PM domainname TITLE VARCHAR2 50 Y User defined title of the BPEL process STATENUMBER Y State of the BPEL process instance STATE_TEXT VARCHAR2 Y Textpresentation of the state attribue PRIORITY NUMBER Y User definedpriority of the BPEL process instance STATUS VARCHAR2 100 Y User definedstatus of the BPEL process STAGE VARCHAR2 100 Y User defined stageproperty of a BPEL process CONVERSATION_ID VARCHAR2 100 Y User definedconversation id of a BPEL process CREATION_DATE TIMESTAMP N The creationtimestamp of the process instance MODIFY_DATE TIMESTAMP Y Timestamp whenthe process instance was modified TS_DATE DATE Y Date portion ofmodify_date TS_HOUR NUMBER Y Hour portion of modify_date EVAL_TIMENUMBER Y Evaluation time of the process instance in msecsSLA_COMPLETION_TIME NUMBER Y SLA completion time in msecs SLA_SATISFIEDVARCHAR2 1 Y ‘Y’ or ‘N’

Still another called BPMACTIVITYSENSORVALUES contains all the activitysensor values of the monitored BPEL processes: Name Type Size I? N?Comment ID NUMBER PK N Unique Id PROCESS_INSTANCE NUMBER N ID of processinstance BPEL_PROCESS_NAME NVARCHAR2 100 U1, 1 N Name of the BPELprocess BPEL_PROCESS_REVISION VARCHAR2 50 U1, 2 N Revision of the BPELprocess DOMAIN_ID VARCHAR2 50 U1, 3 N BPEL PM domain name SENSOR_NAMENVARCHAR2 100 N The name of the sensor that fired SENSOR_TARGETNVARCHAR2 256 N The target of the fired sensor ACTION_NAME NVARCHAR2 100N The name of the sensor action ACTION_FILTER NVARCHAR2 256 Y The filterof the action CREATION_DATE TIMESTAMP N The creation date of theactivity sensor value MODIFY_DATE TIMESTAMP Y The timestamp of lastmodification TS_DATE DATE Y The Date part of modify_date TS_HOUR NUMBERY The hour part of modify_date ACTIVITY_NAME NVARCHAR2 100 N The name ofthe BPEL activity ACTIVITY_TYPE VARCHAR2 30 N The type of the BPELactivity ACTIVITY_STATE VARCHAR2 30 Y The state of the activityEVAL_POINT VARCHAR2 20 N The eval point of the activity sensorERROR_MESSAGE NVARCHAR2 2000 Y An error message RETRY_COUNT NUMBER Y Thenumber of retries of the activity EVAL_TIME NUMBER Y Evaluation time ofthe activity in msecs

Still another view called BPMFAULTSENSOR Name Type Size I? N? Comment IDNUMBER PK N Unique Id PROCESS_INSTANCE NUMBER N ID of process instanceBPEL_PROCESS_NAME NVARCHAR2 100 U1, 1 N Name of the BPEL processBPEL_PROCESS_REVISION VARCHAR2 50 U1, 2 N Revision of the BPEL processDOMAIN_ID VARCHAR2 50 U1, 3 N BPEL PM domain name SENSOR_NAME NVARCHAR2100 N The name of the sensor that fired SENSOR_TARGET NVARCHAR2 256 NThe target of the fired sensor ACTION_NAME NVARCHAR2 100 N The name ofthe sensor action ACTION_FILTER NVARCHAR2 256 Y The filter of the actionCREATION_DATE TIMESTAMP N The creation date of the activity sensor valueMODIFY_DATE TIMESTAMP Y The timestamp of last modification TS_DATE DATEY The Date part of modify_date TS_HOUR NUMBER Y The hour part ofmodify_date ACTIVITY_NAME NVARCHAR2 100 N The name of the BPEL activityACTIVITY_TYPE VARCHAR2 30 N The type of the BPEL activity MESSAGE CLOB YThe fault messageVALUES contains all fault sensor values, as shown below.

Still another view called BPMVARIABLESENSOR VALUES contains all thevariable sensor values, as shown below. Name Type Size I? N? Comment IDNUMBER PK N Unique Id PROCESS_INSTANCE NUMBER N ID of process instanceBPEL_PROCESS_NAME NVARCHAR2 100 U1, 1 N Name of the BPEL processBPEL_PROCESS_REVISION VARCHAR2 50 U1, 2 N Revision of the BPEL processDOMAIN_ID VARCHAR2 50 U1, 3 N BPEL PM domain name SENSOR_NAME NVARCHAR2100 N Name of sensor that fired SENSOR_TARGET NVARCHAR2 256 N Target ofthe sensor ACTION_NAME NVARCHAR2 100 N Name of the action ACTION_FILTERNVARCHAR2 256 Y Filter of the action ACTIVITY_SENSOR NUMBER Y Id ofcorresponding activity sensor value CREATION_DATE TIMESTAMP N Creationdate TS_DATE DATE N The Date part of creation_date TS_HOUR NUMBER N Thehour part of creation_date VARIABLE_NAME NVARCHAR2 256 N The name of theBPEL variable CRITERIA_SATISFIED VARCHAR2 1 Y ‘Y’ or ‘N’ TARGETNVARCHAR2 256 UPDATER_NAME NVARCHAR2 100 N The name of the activity orevent that updated the variable UPDATER_TYPE NVARCHAR2 100 N The type ofBPEL activity or event VALUE_TYPE SMALLINT N The value type of thevariable (coresponds to java.sql.Types values) VARCHAR2_VALUE NVARCHAR22000 Y The value of ‘String’ like variabales NUMBER_VALUE NUMBER Y Thevalue of number like variables (float, double, int, etc.) DATE_VALUETIMESTAMP Y The value of date like variables BLOB_VALUE BLOB Y The valueof binary data variables CLOB_VALUE CLOB Y The value of clob likevariables (XML)

Still another view called BMPERRORS contains all the errors from BPMservices, as shown below. Name Type Size I? N? Comment ID NUMBER PK NUnique Id BPEL_PROCESS_NAME NVARCHAR2 100 U1, 1 N Name of the BPELprocess BPEL_PROCESS_REVISION VARCHAR2 50 U1, 2 N Revision of the BPELprocess DOMAIN_ID VARCHAR2 50 U1, 3 N BPEL PM domain name CREATION_DATETIMESTAMP N The creation date of the activity sensor value TS_DATE DATEN The Date part of creation_date TS_HOUR NUMBER N The hour part ofcreation_date ERROR_CODE NUMBER N Error code EXCEPTION_TYPE NUMBER NType of the error EXCEPTION_SEVERITY NUMBER N Severity of the errorEXCEPTION_NAME NVARCHAR2 200 N Name of the error EXCEPTION_DESCRIPTIONNVARCHAR2 2000 Y A short description of the error EXCEPTION_FIXNVARCHAR2 2000 Y A description on how to fix the error EXCEPTION_CONTEXTVARCHAR2 4000 Y The context of the error COMPONENT NUMBER N The BPMcomponent that caused the error THREAD_ID VARCHAR2 200 N The Java threadname where the error occurred STACKTRACE CLOB N The Java stack trace

Numerous modifications and adaptations of the embodiments describedherein will become apparent to the skilled artisan in view of thisdisclosure. Note that although some embodiments use a single screen(e.g. see FIG. 3C) to receive a tuple including a sensor's identity andalso an identity of its sensor action, other embodiments may receivesuch a tuple differently. Specifically, in an alternative embodiment,sensors are displayed in a left column and endpoints are displayed in aright column and the user selects a sensor in the left column and one ormore endpoints in the right column, and after being satisfied as to theselections in the two columns, clicks on a button to form an associationtherebetween, and the computer responds by articulating a tuple in themanner described above. Moreover, sensors and sensor actions of the typedescribed above can be reviewed, changed and deleted, as well as newones added by a graphical user interface (GUI) in the same computer 219or in a computer which is completely different from computer 219 (inwhich a business process is being modeled). For example, the GUI may begenerated by a business activity monitor (BAM) computer 299. Numerousmodifications and adaptations of the embodiments described herein areencompassed by the scope of the invention.

1. A method of transferring data sensed from a business process, themethod comprising: displaying in a graphical user interface, thebusiness process including indications of a plurality of portions fromwhich data capture is to be permitted during execution of the businessprocess; receiving, through the graphical user interface, a selection ofa portion in the plurality of portions, from which data capture is to beperformed; receiving, through the graphical user interface, values of aplurality of attributes of a destination to which is to be transferredthe data to be captured from the portion identified in the firstidentification; wherein the plurality of attributes comprises a type ofsaid destination and an identification of said destination; executingthe business process while checking on execution of at least a group ofportions in said plurality, whether or not capture of data is enabled;performing capture of data, from the portion identified in theselection; and using predetermined software associated with said type ofsaid destination to transfer data captured from the portion identifiedin the selection.
 2. The method of claim 1 wherein: the predeterminedplurality of types comprises at least (a) a queuing type, (b) a databasetype and (c) a subscription publication type.
 3. The method of claim 2wherein: the predetermined plurality of types further comprises a customtype; and on receipt of the custom type, the method further comprisesreceiving software prepared by the user for processing the data to becaptured from the portion identified in the selection.
 4. The method ofclaim 1 further comprising: receiving the selection of said portion onceagain; receiving additional values of said plurality of attributes;wherein the additional values include an additional type and anadditional destination; and transferring, to the additional destination,said data captured from the portion identified in the selection.
 5. Themethod of claim 4 further comprising: transferring a first documentcomprising at least two first descriptions of tuples including (a) afirst tuple comprising (the selected portion, the type, and theidentification of destination) and (b) a second tuple comprising (theselected portion, the additional type and the additional destination);wherein the first document is transferred subsequent to transfer of asecond document comprising a second description of the business process;wherein the first document is transferred subsequent to transfer of athird document comprising a third description indicating each portion inthe plurality of portions from which data capture is permitted; andwherein all documents are expressed in a common markup language.
 6. Themethod of claim 5 further comprising: generating a carrier wave encodedwith the first document for transmission over a communication network.7. A computer-readable storage medium encoded with instructions toperform the acts of claim 5, the storage medium being further encodedwith at least the first document.
 8. The method of claim 1 wherein: thebusiness process comprises at least one of (a) an activity to invoke aweb service, (b) a receive activity to wait for a message from anexternal source and (c) a throw activity to raise an exception error;and the portion identified in the first identification comprises atleast one of a variable and a fault.
 9. The method of claim 1 wherein:the plurality of attributes further comprises a property which dependson said type.
 10. The method of claim 9 wherein: the property indicatesa set of connection configuration parameters to be used in transferringthe captured data to said destination.
 11. The method of claim 1wherein: the plurality of attributes further comprises a filter to beapplied on the data captured from the portion identified in theselection.
 12. A carrier wave encoded with instructions to perform theacts of claim
 1. 13. A plurality of computers interconnected to oneanother, each computer in the plurality of computers comprising aprocessor and a memory coupled to the processor, wherein memory of afirst computer in the plurality of computers is encoded withinstructions at least to: display in a graphical user interface, a flowof activities of the business process including indications of aplurality of portions thereof from which data capture is permittedduring execution of the business process; receive, through the graphicaluser interface, a first identification of a portion in said plurality,from which data capture is to be enabled; and receive, through thegraphical user interface, a second identification of an endpoint towhich is to be transferred the data to be captured from the portionidentified in the first identification; wherein memory of a secondcomputer in the plurality of computers is encoded with instructions atleast to: execute the business process while checking after execution ofeach portion in said plurality, whether or not capture of data isenabled; perform capture of data, from the portion identified in thefirst identification; and transfer, to the endpoint identified in thesecond identification, data captured from the portion identified in thefirst identification.
 14. An apparatus for orchestrating a businessprocess, the apparatus comprising: means for displaying in a graphicaluser interface, a flow of activities of the business process includingindications of a plurality of portions thereof from which data captureis permitted during execution of the business process; means forreceiving, through the graphical user interface, a first identificationof a portion in said plurality, from which data capture is to beenabled; means for receiving, through the graphical user interface, asecond identification of an endpoint to which is to be transferred thedata to be captured from the portion identified in the firstidentification; means for executing the business process while checkingafter execution of each portion in said plurality, whether or notcapture of data is enabled; means for performing capture of data, fromthe portion identified in the first identification; and means fortransferring, to the endpoint identified in the second identification,data captured from the portion identified in the first identification.15. A computer-implemented method of transferring data sensed from abusiness process, the method comprising: displaying in a graphical userinterface, a plurality of portions of a business process; receiving,through the graphical user interface, an identification of a portion inthe plurality of portions, from which data is to be captured; generatinga description of said portion from which data is to be captured; andexecuting the business process while checking after execution of eachportion thereof, whether or not data is to be captured as indicated insaid description.
 16. The method of claim 15 further comprising:displaying in said graphical user interface an icon adjacent to saidportion from which data is to be captured.
 17. The method of claim 15wherein: the description is expressed in a human-readable language.